﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    public class Link
    {
        public string Id { get; set; }
        public string Name { get; set; }
        public string Line1 { get; set; }
        public string Line2 { get; set; }
        public string Link1 { get; set; }
        public string Link2 { get; set; }
        public string Position { get; set; }
        public string Ord { get; set; }
        public string Active { get; set; }
        public string Lang { get; set; }

        public Link LinkIDataReader(IDataReader dr)
        {
            return new Link
                       {
                           Id = Convert.ToString(dr["Id"]),
                           Name = Convert.ToString(dr["Name"]),
                           Line1 = Convert.ToString( dr["Line1"]),
                           Line2 = Convert.ToString( dr["Line2"]),
                           Link1 = Convert.ToString( dr["Link1"]),
                           Link2 = Convert.ToString( dr["Link2"]),
                           Position = Convert.ToString( dr["Position"]),
                           Ord = Convert.ToString( dr["Ord"]),
                           Active = Convert.ToString( dr["Active"]),
                           Lang = Convert.ToString(dr["Lang"]),
                       };
        }
    }
}
